package lanqiaotrain.t2;


/**
 * @Author: Hasee
 * @Date: 2020-10-03 14:16:10
 */
public class Basic7 {
    public static void main(String[] args) {
        int i,j,sum,k;
        for (i=100;i<1000;i++){
            j=i;
            sum=0;
            while (j>0){
                k=j%10;
                j=j/10;
                sum+=k*k*k;
            }
            if (sum==i){
                System.out.println(sum);
            }
        }
    }



}
